<template>
  <div id="event">
    <p class="title">我的动态（{{ eventCounts }}）</p>

    <div>
      <i class="el-icon-s-promotion"></i>
      <span>您还没有发布动态</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "UserEvent",

  beforeMount() {
    this.eventCounts = this.$cookies.get('user').userData[0].counts;
  },

  data () {
    return {
      // 动态数
      eventCounts: 0,
    }
  }
}
</script>

<style lang="less" scoped>
.title {
  border-bottom: 2px solid red;
  padding-bottom: 8px;
  font-size: 18px;

  &+div {
    padding-top: 100px;
    text-align: center;
    overflow: hidden;

    .el-icon-s-promotion {
      font-size: 60px;
    }

    span {
      font-size: 22px;
    }
  }
}
</style>